Skip to content

[18-stable] Remove unnecessary pods RBAC permissions - #422

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-409-to-18-stable
Jul 28, 2026
Merged

[18-stable] Remove unnecessary pods RBAC permissions#422
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-409-to-18-stable

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #409

/assign stuggi

The workload rbacRules and kubebuilder RBAC markers granted the operator and
its workload service account full CRUD (create/delete/get/list/patch/update/
watch) on core Pods, but the operator never reads or writes Pod objects
directly — pods only ever come into being indirectly via Deployments/
StatefulSets/Jobs. Remove the unused pods permission and regenerate
config/rbac/role.yaml.

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>

@SeanMooney SeanMooney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think in nova at least we did manage pods direcly brefily

so this may have also been copy pasta form nova-operator but ya we shoudl not need this

@openshift-ci

openshift-ci Bot commented Jul 28, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 7221be7 into openstack-k8s-operators:18-stable Jul 28, 2026
5 checks passed
@SeanMooney

Copy link
Copy Markdown
Collaborator

hum i jsut saw openstack-k8s-operators/nova-operator#1165

do we have the same issue here?

@amoralej

Copy link
Copy Markdown
Contributor

hum i jsut saw openstack-k8s-operators/nova-operator#1165

do we have the same issue here?

I don't think so as we don't have networkattachments in watcher-operator

@stuggi

stuggi commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

hum i jsut saw openstack-k8s-operators/nova-operator#1165
do we have the same issue here?

I don't think so as we don't have networkattachments in watcher-operator

right, watcher is not using the func from lib-common on networkattachment validation which would check on pod status

@SeanMooney

Copy link
Copy Markdown
Collaborator

ah yes that makes sense we do not have any edpm compoent so we dont need to expose watcerh to the isolated networks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants